package com.dsg.entity.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 客戶總賬
 * </p>
 *
 * @author system
 * @since 2020-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_account_cus")
@ApiModel(value = "DsgAccountCus对象", description = "客戶總賬")
public class DsgAccountCus implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final BigDecimal maxBalanceValue = new BigDecimal("100000");

    @ApiModelProperty(value = "主鍵")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "客戶編號")
    @TableField("CUS_NO")
    private String cusNo;

    @ApiModelProperty(value = "結餘")
    @TableField("BALANCE_VALUE")
    private BigDecimal balanceValue;

    @ApiModelProperty(value = "總充值金額")
    @TableField("RECHARGE_VALUE")
    private BigDecimal rechargeValue;

    @ApiModelProperty(value = "總消費金額")
    @TableField("CONSUME_VALUE")
    private BigDecimal consumeValue;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;


}
